const mongoose = require('../connect')

const userSchema = mongoose.Schema({
  username: String,
  password: String,
  token: String,
  create_time: Date
});
//根据schema生成model
const User = {
  User: mongoose.model('User', userSchema)
};

// module.exports = models
module.exports = User
